package org.shagin.jfin.data.model;

import java.util.List;


/**
 * The Class TransferRule.
 */
public class TransferRule extends OperationRule {

    private Account destAccount;

    /**
     * Instantiates a new transfer rule.
     * 
     * @param ruleId the rule id
     * @param sourceAccount the source account
     * @param destAccount the dest account
     * @param category the category
     * @param actions the actions
     */
    public TransferRule(String ruleId, Account sourceAccount,
            Account destAccount, OperationCategoryLeaf category,
            List<OperationRuleAction> actions, IBudget budget) {
        super(ruleId, sourceAccount, category, actions, budget);
        this.destAccount = destAccount;
    }

    /**
     * Gets the dest account.
     * 
     * @return the dest account
     */
    public Account getDestAccount() {
        return destAccount;
    }

}
